package com.amiu.service;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.amiu.shiro.db.role.Role;
import com.amiu.shiro.db.role.RoleDao;
import com.amiu.shiro.db.user.UserDao;
import com.amiu.shiro.db.user_role.UserRoleDao;

@Service
public class RoleService {

	@Autowired UserDao userDao;
	@Autowired RoleDao roleDao;
	@Autowired UserRoleDao userRoleDao;
	
	
	public Map<Long, Role> findRoleByUserId(Long userId){
		Map<Long, Role> roleMap = roleDao.findRoleByUserId(userId);
		return roleMap;
	}
}
